package me.helllp.dake.iam.core.po;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;
import lombok.Data;
import lombok.EqualsAndHashCode;
import me.helllp.dake.core.base.BasePo;

/**
 * <p>
 * 
 * </p>
 *
 * @author dake
 * @since 2022-12-05
 */
@Data
@EqualsAndHashCode(callSuper = false)
public class DakeAccount extends BasePo implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 标识
     */
    @TableId(value = "ID", type = IdType.INPUT)
    private Long id;

    /**
     * 账号
     */
    @TableField("ACCOUNT")
    private String account;

    /**
     * 密码
     */
    @TableField("PASSWORD")
    private String password;

    /**
     * 盐
     */
    @TableField("SALT")
    private String salt;

    /**
     * 是否被锁定
     */
    @TableField("IS_LOCK")
    private Boolean isLock;

    /**
     * 是否为首次登录
     */
    @TableField("IS_FIRST_LOGIC")
    private Boolean isFirstLogic;

    /**
     * 租户ID
     */
    @TableField("TENANT_ID")
    private Long tenantId;

    /**
     * 用户ID
     */
    @TableField("USER_ID")
    private Long userId;
}
